package com.wsx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wsx.entity.DishFlavor;
import com.wsx.mapper.DishFlavorMapper;
import com.wsx.service.DishFlavorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DishFlavorServiceImpl extends ServiceImpl<DishFlavorMapper, DishFlavor> implements DishFlavorService {
    @Autowired
    private DishFlavorMapper dishFlavorMapper;
    @Override
    public void insertBatchDishFlavor(List<DishFlavor> flavorList) {
        dishFlavorMapper.insertBatchDishFlavor(flavorList);
    }

    @Override
    public List<DishFlavor> selectDishFlavorList(DishFlavor dishFlavor) {
        return dishFlavorMapper.selectDishFlavorList(dishFlavor);
    }

    @Override
    public void deleteDishFlavorById(DishFlavor dishFlavor) {
        dishFlavorMapper.deleteDishFlavorById(dishFlavor);
    }


}